<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title><?php echo $view['config']['webSiteName'] . $view['config']['adminName'] . $view['config']['dashBoard'] ?></title>
    <?php include_once("common/admin_css_js_header.php");?>
</head>
<body>
<!-- Header -->
<?php include_once("common/admin_header.php");?>
<!-- End of Header -->
<!-- Page title -->
<div id="pagetitle">
    <div class="wrapper">
        <h1><?php echo $view['config']['dashBoard'] ?></h1>
        <!-- Quick search box -->
        <form action="" method="get"><input class="" type="text" id="q" name="q"/></form>
    </div>
</div>
<!-- End of Page title -->

<!-- Page content -->
<div id="page">
    <!-- Wrapper -->
    <div class="wrapper">
        <!-- Left column/section -->
        <section class="column width6 first">

            <div class="colgroup leading">
                <div class="column width3 first">
                    <h3>欢迎回来, <a href="#"></a></h3>

                    <p>
                        你当前使用的是<b><?php echo $view['config']['webSiteName'] . $view['config']['adminName'] . $view['config']['dashBoard'] ?></b>.<br/>
                    </p>
                </div>
                <div class="column width3">
                    <h4>上次登录信息</h4>

                    <p>
                        登录时间:<?php echo $view['session']['credentials']['lastLoginDate']; ?><br/>
                        登录IP:<?php echo $view['session']['credentials']['ip']; ?>
                    </p>
                </div>
            </div>

            <div class="colgroup leading">
                <div class="column width3 first">
                    <h4><?php echo $view['config']['admin_index_news'] ?> <a
                            href="/Admin/news"><?php echo $view['lastNews_total_count'] ?></a></h4>
                    <hr/>
                    <table class="no-style full">

                        <tbody>
                        <?php foreach ($view['lastNews'] as $value) { ?>
                        <tr>
                            <td><?php echo $value['title'];?></td>
                            <td class="ta-right"><?php echo $value['createDate'];?></td>
                            <td class="ta-right"><?php echo $value['hits'];?></td>
                        </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
                <div class="column width3">
                    <h4><?php echo $view['config']['admin_index_activity'] ?> <a
                            href="/Admin/activities"><?php echo $view['lastActivity_total_count'] ?></a></h4>
                    <hr/>
                    <table class="no-style full">
                        <tbody>
                        <?php foreach ($view['lastActivity'] as $value) { ?>
                        <tr>
                            <td><?php echo $value['title'];?></td>
                            <td class="ta-right"><?php echo $value['createDate'];?></td>
                            <td class="ta-right"></td>
                        </tr>
                            <?php } ?>

                        </tbody>
                    </table>
                </div>
            </div>

            <!--<div class="colgroup leading">
                           <div class="column width3 first">
                               <h4>Client Stats</h4>
                               <hr/>
                               <table class="no-style full">
                                   <tbody>
                                       <tr>
                                           <td>Active</td>
                                           <td class="ta-right">1/5</td>
                                           <td><div id="progress1" class="progress full progress-green"><span><b></b></span></div></td>
                                       </tr>
                                       <tr>
                                           <td>Pending</td>
                                           <td class="ta-right">2/5</td>
                                           <td><div id="progress2" class="progress full progress-blue"><span><b></b></span></div></td>
                                       </tr>
                                       <tr>
                                           <td>Suspended</td>
                                           <td class="ta-right">2/5</td>
                                           <td><div id="progress3" class="progress full progress-red"><span><b></b></span></div></td>
                                       </tr>
                                   </tbody>
                               </table>
                           </div>
                           <div class="column width3">
                               <h4>Reports</h4>
                               <hr/>
                               <p><b>Sales this year</b></p>
                               <div id="placeholder" style="height:100px"></div>
                           </div>
                       </div>-->
            <div class="clear">&nbsp;</div>

        </section>
        <!-- End of Left column/section -->

        <!-- Right column/section -->
        <aside class="column width2">
            <div id="rightmenu">
                <header>
                    <h3>Your Account</h3>
                </header>
                <dl class="first">
                    <dt><img width="16" height="16" alt="" SRC="../img/key.png"></dt>
                    <dd>
                        <a href="#"><?php echo $view['session']['credentials']['realName'] . "(" . $view['session']['credentials']['userName'] . ")"; ?></a>
                    </dd>
                    <!--<dd class="last">Free Account.</dd>-->

                    <!-- <dt><img width="16" height="16" alt="" SRC="../img/help.png"></dt>
                 <dd><a href="#">Support</a></dd>
                 <dd class="last">Documentation and FAQ</dd>-->
                </dl>
            </div>
            <!--<div class="content-box">
                           <header>
                               <h3>Latest in the Community</h3>
                           </header>
                           <section>
                               <dl>
                                   <dt>Maximize every interaction with a client</dt>
                                   <dd><a href="#">Read more</a></dd>
                                   <dt>Diversification for Small Business Owners</dt>
                                   <dd><a href="#">Read more</a></dd>
                               </dl>
                           </section>
                       </div>-->
        </aside>
        <!-- End of Right column/section -->

    </div>
    <!-- End of Wrapper -->
</div>
<!-- End of Page content -->

<?php include_once("common/admin_footer.php");?>
</body>
</html>